const Stomp = require('stomp-client');
var JMSProperties = require('../JMSProperties');
var BlackShopQueue = JMSProperties.BlackShopQueue;
var ComplaintsQueue = JMSProperties.ComplaintsQueue;
var client = new Stomp(JMSProperties.activeMqUrl,JMSProperties.activePort,'','');
client.connect(function(sessionId) {
})

exports.ToBlackShop = function (postData) {
    client.publish(BlackShopQueue, JSON.stringify(postData));
}
exports.toComplaintOrder = function (postData) {
    client.publish(ComplaintsQueue, JSON.stringify(postData));
}